473,425 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

scrollbar won't add to popup window

Hello,

I seem to be having trouble with a rather simple problem. I am opening a new
window with the window.open command, and even though I set scrollbar=yes, I
can't seem to get the window to display a vertical scrollbar when the text
exceeds the height of the window i just openned (on a side note, ideally I
would like to just have a vertical scrollbar).

My code follows. Thank you,
~Dari

<table style='border:2px inset;font-size:medium;' cellpadding="5">
<tr>
<td border='0' bgcolor='#EEEEE0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Document.txt'>New_Text_Document.txt</a><br />
<a href='files/clonelink.gif'>clonelink.gif</a><br
/>
<a href='files/clonelink2.gif'>clonelink2.gif</a><br
/>
<!--REP_END-->
</td>
<td border='0' width="100" align="right">
<!--COM_START-->
<span style="cursor:hand"
onclick="window.open('files/comments/New_Text_Document.txt.html',
'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink2.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>
Jul 20 '05 #1
2 12433
"darius" <da************@yahoo.com> wrote in
news:cd**********@news.Stanford.EDU:
Hello,

I seem to be having trouble with a rather simple problem. I am opening
a new window with the window.open command, and even though I set
scrollbar=yes, I can't seem to get the window to display a vertical
scrollbar when the text exceeds the height of the window i just
openned (on a side note, ideally I would like to just have a vertical
scrollbar).

My code follows. Thank you,
~Dari

<table style='border:2px inset;font-size:medium;' cellpadding="5">
<tr>
<td border='0' bgcolor='#EEEEE0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Document.txt'>New_Text_Document.txt</a><br />
<a
href='files/clonelink.gif'>clonelink.gif</a> <br />
<a
href='files/clonelink2.gif'>clonelink2.gif</a> < br
/>
<!--REP_END-->
</td>
<td border='0' width="100" align="right">
<!--COM_START-->
<span style="cursor:hand"
onclick="window.open('files/comments/New_Text_Document.txt.html',
'NewWindow',
'height=400,width= 500,scollbar=yes,toolbar=no,menubar=no,resizable=y es' );">< a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink.gif.html', 'NewWindow',
'height=400,width= 500,scollbar=yes,toolbar=no,menubar=no,resizable=y es' );">< a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink2.gif.html',
'NewWindow',
'height=400,width= 500,scollbar=yes,toolbar=no,menubar=no,resizable=y es' );">< a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>


I've always used:
<script language="javascript">

<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'status=yes
'+'height='+h+',width='+w+',top='+wint+',left='+wi nl+',scrollbars='+scro
l
l+''; new_win = window.open(mypage, myname, winprops);
new_win.window.focus();
}
// End -->
</script>
or a variant thereof, and always get scrollbars if I've mis-sized the
window to the page content...
Jul 20 '05 #2
DU
darius wrote:
Hello,

I seem to be having trouble with a rather simple problem. I am opening a new
window with the window.open command, and even though I set scrollbar=yes,

It's scrollbars=yes and not scollbar=yes

I can't seem to get the window to display a vertical scrollbar when the text
exceeds the height of the window i just openned (on a side note, ideally I
would like to just have a vertical scrollbar).

My code follows. Thank you,
~Dari

You're using tables (nested tables on top of that) for non-tabular data.

DU
<table style='border:2px inset;font-size:medium;' cellpadding="5">
<tr>
<td border='0' bgcolor='#EEEEE0' >
<table border="0">
<tr>
<td width="260">
<!--REP_START-->
<a
href='files/New_Text_Document.txt'>New_Text_Document.txt</a><br />
<a href='files/clonelink.gif'>clonelink.gif</a><br
/>
<a href='files/clonelink2.gif'>clonelink2.gif</a><br
/>
<!--REP_END-->
</td>
<td border='0' width="100" align="right">
<!--COM_START-->
<span style="cursor:hand"
onclick="window.open('files/comments/New_Text_Document.txt.html',
'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<span style="cursor:hand"
onclick="window.open('files/comments/clonelink2.gif.html', 'NewWindow',
'height=400,width=500,scollbar=yes,toolbar=no,menu bar=no,resizable=yes');"><
a>comments</a></span><br />
<!--COM_END-->
</td>
</tr>
</table>
</td>
</tr>
</table>

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Don Schneider | last post by:
I tried to setup a frameset which consists of 4 different subframes. Each of these subframes should fetch a different web page from the internet and display it completely (!). BUT: the vertical...
4
by: anna | last post by:
How to tell if a horizontal scrollbar is present? I only want to use scrollTo if horizontal scrollbar is present. window.scrollbars.visibility doesn't specify which scrollbar is present, so it...
4
by: darius | last post by:
Hello, I seem to be having trouble with a rather simple problem. I am opening a new window with the window.open command, and even though I set scrollbar=yes, I can't seem to get the window to...
15
by: H00ner | last post by:
Hello All Hope you can help Been pulling my hair out about a popup problem in ASP.NET. One of the forms i wrote requires the user to select a product from a list in a popup web form. the...
2
by: anx | last post by:
I've got a grid-managed frame, containing a column of Labels, and a corresponding column of Entry widgets. I'd like to be able to display dozens, or even hundreds of rows, and use a vertical...
4
by: Richard | last post by:
Hi, ich verwende folgenden Code, den ich im Internet gefunden habe, um Informationen auf Anfrage in Popupfenstern zu öffnen: // Script by Thomas Stich //...
5
by: ryanmhuc | last post by:
Is it possible to make the scrollbar appear on a page which is NOT A POPUP? On IE the scollbar space is always reserved or appears even if not used. In Firefox it does not exist unless the...
3
hsriat
by: hsriat | last post by:
How can I temporarily disable vertical scrollbar? I have replaced confirmation boxes and alert boxes with inlay popup DIVs. But while they are on the screen, I need to disable scrollbar of the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.